package model.action;

import java.util.List;
import datacontainer.ImmuTable;


/**
 * This method will evaluate a condition as to whether
 * the supplied reference is equal to its counterpart in the column
 * specified. This class will remove all rows that do not
 * meet the condition.
 * 
 * @author Michael Deng
 * 
 */
public class DeleteRowOnNotEqual extends RowAction {

    /**
     * 
     * @param column name of column of interest
     * @param conditions name of reference column
     */
    @Override
    public void setInput (String column, List<String> conditions) {
        super.setInput(column, conditions);
    }

    @Override
    public void execute (ImmuTable workSpace, ImmuTable rawData) {
        boolean removeRow = true;
        executeEqualityConditional(workSpace, super.getColumnName(), super.getConditions(),
                                   removeRow);
    }
}
